package com.example.administrator.myfragment;


import android.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

/**
 * A simple {@link Fragment} subclass.
 */
public class NewsFragment extends Fragment {
     private  TextView tv;
    public NewsFragment() {
        // Required empty public constructor
    }


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {

        View messageLayout=inflater.inflate(R.layout.news_layout,container,false);
//        tv=(TextView)messageLayout.findViewById(R.id.news);
//        tv.setText("动态！！！！");
//        TextView textView = new TextView(getActivity());
//        textView.setText(R.string.hello_blank_fragment);
        return messageLayout;
    }

}
